package dj.common.lang.utils;

import com.dj.common.response.CentralListResponse;
import com.dj.common.response.CentralResponse;

public class CentralResponseUtil {

    private static final int SUCCESS_CODE = 200;

    public CentralResponseUtil() {
    }

    public static boolean isCentralResponseSuccess(CentralResponse centralResponse) {
        return null != centralResponse && centralResponse.getCode() == SUCCESS_CODE;
    }


    public static boolean isCentralListResponseSuccess(CentralListResponse centralListResponse) {
        return null != centralListResponse && centralListResponse.getCode() == SUCCESS_CODE;
    }
}
